// console.log(parseInt(.1))
// console.log(parseInt(.9))
// console.log(parseInt(1.9))
for (i = 0; i < 15; i++) {
    // console.log(Math.random()) 随机小数
    // 0 1 2 随机整数  0.0000001 *2 0 0.99999999*2
    //let t = Math.round(Math.random() * 2)
    //10-20 之间的随机整数
    let t = parseInt(Math.random() * 11) + 10
    console.log(t)
}


let str = '0123456789abcdef'
let cs = '#'
for (let i = 0; i < 6; i++) {
    cs += `${str[Math.round(Math.random() * (str.length - 1))]}`
}
console.log(cs)
console.log(`rgb(${Math.round(Math.random() * 255)},${Math.round(Math.random() * 255)},${Math.round(Math.random() * 255)})`)
console.log(`rgba(${Math.round(Math.random() * 255)},${Math.round(Math.random() * 255)},${Math.round(Math.random() * 255)},${Math.random()})`)

console.log(new Date().getTime())
//随机时间
let d = new Date(0)
console.log(d, d.toLocaleString(), d.getTime())

//1680158827101 2023 1 1 0 0 0 - now的随机时间

let ss = new Date(2023, 1 - 1, 1, 0, 0, 0).getTime()
let ee = new Date().getTime()
let tt = Math.round(Math.random() * (ee - ss)) + ss
let randtime = new Date(tt)
console.log(randtime, randtime.toLocaleString())

